﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;

namespace PaCSTools.Tool
{
    public class SQLServerHelper
    {
        public static IDbConnection Connection = null;
        public SQLServerHelper()  
        {
            Connection = new SqlConnection("server=192.168.20.99;database=bpm;uid=sa;pwd=b2bv2"); 
        }

        public static IDbConnection CreateInstance()
        {
            if (Connection == null)
            {
                Connection = new SqlConnection("server=192.168.20.99;database=bpm;uid=sa;pwd=b2bv2;charset='utf8'");             
            }
            return Connection;
        }
    }

}
